package com.cos.ssm2.dao;

import com.cos.ssm2.entity.Emp;
import com.cos.ssm2.entity.vo.EmpVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/6/10 9:58
 * @description:
 */
public interface EmpDao {
    List<Emp> getAll();

    Emp getEmpByEname(@Param("ename") String ename);

    List<EmpVo> getEmpWithDept();

    int delEmp(@Param("eno") Integer eno);

    int addEmp(Emp e);

    Emp getEmpByEno(@Param("eno") Integer eno);

    int updateEmp(Emp emp);
}
